{% extends 'purchaseSys/goodstype_manage.html' %}
{% block datasshow %}
    <tr>
        <th>编号</th>
        <th>颜色</th>
    </tr>
    {% for color in all_color %}
        <tr class="danger tr_click">
            <td>{{ color.id }}</td>
            <td>{{ color.cname }}</td>
        </tr>
    {% endfor %}
{% endblock %}
{% block addcontent %}
    {{ color_form.cname.label_tag }}{{ color_form.cname }}<span style="color:red;">{{ msg_add }}{{ error_add }}</span>
{% endblock %}
{% block updcontent %}
        <tr>
            <th>编号</th>
            <th>颜色</th>
        </tr>

        <tr>
            <td><input type="text" name="id" class="form-control"  readonly></td>
            <td><input type="text" name="cname"  class="form-control" readonly><span style="color:red;">{{ msg_upd }}{{ error_upd }}</span></td>
        </tr>
{% endblock %}
{% block delcontent %}
        <tr>
            <th>编号</th>
            <th>颜色</th>
        </tr>
        <tr>
            <td><input type="text" name="id" class="form-control" readonly></td>
            <td><input type="text" name="cname" id="" class="form-control" readonly><span style="color:red;">{{ msg_del }}{{ error_del }}</span></td>
        </tr>
{% endblock %}

{% block add_action_form %}
    action = '/purSysIndex/color/'
{% endblock %}
{% block upd_action_form %}
    action = '/purSysIndex/color/'
{% endblock %}
{% block del_action_form %}
    action = '/purSysIndex/color/'
{% endblock %}